/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.facets;

import java.text.DateFormat;
import java.util.Date;

/**
 *
 * @author Mikhail
 */
public class DateFormatter {
    public static String format(Date date) {
        DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM);
        String s1 = df.format(date);
        df = DateFormat.getTimeInstance(DateFormat.MEDIUM);
        String s2 = df.format(date);
        return s1 + " " + s2;
    }
}
